package com.wthink.hzgj.util.adapter

abstract class MultipleAdapter<T : BaseViewHolder, V : Any> : BaseAdapter<T>() {

    abstract fun getItemViewLayout(data: V): Int

    override fun getItemViewType(position: Int): Int {
        @Suppress("UNCHECKED_CAST")
        return getItemViewLayout(items[position] as V)
    }
}